import menu from "./menu.js";
//get system permissions
function findNumericKeys(obj) {
  let result = [];
  function recurse(o) {
    for (const [key, value] of Object.entries(o)) {
      if (!isNaN(Number(key))) {
        result.push(key);
      }
      if (typeof value === "object" && value !== null) {
        recurse(value);
      }
    }
  }
  recurse(obj);
  return result;
}
const confirmPermissions = findNumericKeys(menu);

export default confirmPermissions;
